-- GENERATED SPELL FOR [Mossy Rampager] --


function spell0_28323(pUnit, Event) --@Rampage,Self--
pUnit:FullCastSpellOnTarget(54475,pUnit)
pUnit:RegisterEvent('Sorts_28323', 6000, 1)
end

function Sorts_28323(pUnit, Event)
local choix_sorts_28323 = math.random(0, 0)
if choix_sorts_28323 == 0 then
pUnit:RegisterEvent('spell0_28323', 1, 1)
end
end

function mob28323_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28323', math.random(1500, 3000), 1)
end

function mob28323_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28323_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28323_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28323, 1, 'mob28323_Action')
RegisterUnitEvent(28323, 2, 'mob28323_Leave')
RegisterUnitEvent(28323, 3, 'mob28323_Kill')
RegisterUnitEvent(28323, 4, 'mob28323_Die')
